﻿using RBAC.MaHaiBo.Entity;
namespace RBAC.MaHaiBo.Service
{
    public interface IUserService
    {
        /// <summary>
        /// 添加用户信息
        /// </summary>
        /// <param name="user">要添加的用户信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddUser(UserInfo user);
        /// <summary>
        /// 修改用户信息
        /// </summary>
        /// <param name="user"></param>
        /// <returns>返回受影响行数</returns>
        Task<int> UpdateUser(UserInfo user);
        /// <summary>
        /// 删除用户信息
        /// </summary>
        /// <param uid="uid">用户编号</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteUser(int uid);
        /// <summary>
        /// 批量用户信息
        /// </summary>
        /// <param name="Ids">数据编号集合</param>
        /// <returns>返回受影响行数</returns>
        Task<int> ByUpdateUser(List<int> Ids);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="uid">用户编号</param>
        /// <returns>返回用户信息</returns>
        Task<UserInfo> GetUserInfo(int uid);
        /// <summary>
        /// 显示全部列表
        /// </summary>
        /// <returns>返回用户信息列表</returns>
        Task<FenYeDTO<UserInfoDTO>> GetUser(int poageiden, int pageSzen, string? Name);
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="accountNumber">账号</param>
        /// <param name="password">密码</param>
        /// <returns>返回数据信息</returns>
        Task<UserInfo> GeLohin(string accountNumber, string password);
    }
}
